#include <istream>

#include "../include/card.h"

using namespace std;

namespace mtga {

	Card::Card(std::string name, int cmc, std::string cmc_string) {
		this->name = name;
		this->cmc = cmc;
		this->cmcString = cmc_string;
		this->cardTypes = new set<CardType>();
	}

	Card::~Card() {
	}

	bool Card::isCardType(CardType type) {
		for (set<CardType>::iterator it = cardTypes->begin(); it != cardTypes->end(); ++it) {
			if (type == *it) {
				return true;
			}
		}
		return false;
	}
}

